/*
 * @Author: guandeshen 295570679@qq.com
 * @Date: 2024-08-27 09:57:35
 * @LastEditors: guandeshen 295570679@qq.com
 * @LastEditTime: 2024-09-05 18:49:03
 * @FilePath: /task-admin/src/api/returnassets/index.ts
 * @Description:
 *
 * Copyright (c) 2024 by RSC, All Rights Reserved.
 */
import request from "@/utils/request";
import { ReturnassetsList, ReturnassetsQuery, ReturnassetsForm } from "./model";

class ReturnassetsAPI {
  /**
   * 获取列表
   *
   * @data data
   */
  static getList(data: ReturnassetsQuery) {
    return request<any, ReturnassetsList>({
      url: "/tenant/project/assets",
      method: "post",
      data: data,
    });
  }

  /**
   * 退还
   *
   * @data data
   */
  static returnBack(data: ReturnassetsForm) {
    return request({
      url: "/tenant/project/returnback",
      method: "post",
      data: data,
    });
  }
}

export default ReturnassetsAPI;
